package com.ws.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.aop.IntroductionAdvisor;

import com.ws.bean.Customer;
import com.ws.bean.MaintenanceRecord;
import com.ws.bean.RenralOrder;
import com.ws.bean.ReturnCheck;
import com.ws.bean.Staff;
import com.ws.bean.Vehicle;
import com.ws.bean.VehicleCount;
import com.ws.bean.VehicoleBrand;
import com.ws.util.Page;

@Mapper
public interface RenralOrderDao {

	List<RenralOrder> getOrders(@Param("customer") Customer customer,@Param("page") Page page);

	int getCount(@Param("customer") Customer customer);

	int addOrder(RenralOrder order);

	int delOrder(Integer id);

	int editOrder(RenralOrder order);

	List<Customer> getCustomers();

	List<VehicoleBrand> getBrands();

	List<Vehicle> getModelByID(int id);

	List<Vehicle> getPlateNum(String model);

	ReturnCheck getCheck(RenralOrder order);

	MaintenanceRecord getTenance(Integer id);

	int vehicleJia(RenralOrder order);

	List<VehicleCount> getVehicleCount();

	List<String> getVehicleNamee();

	List<Staff> getStaff();

}
